define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			//获取手机验证码
			get_CellphoneCode: function(param, callback, error, done) {
				param = param || {}
				param.method = 'member.getCellphoneCodeNew';
				Http.post(param, callback, error, done);
			},
			
			check_CellphoneCode: function(param, callback, error, done) {
				param = param || {}
				param.method = 'member.chkCellphoneCode';
				Http.post(param, callback, error, done);
			},

			recover: function(param, callback, error, done) {
				param = param || {}
				param.method = 'member.recover';
				Http.post(param, callback, error, done);
			},
			//获取图形验证码
//			get_imgCode : function(callback) {
//				Http.post({
//					method: 'member.verifyCodeMobile',
//					ts: new Date().getTime()
//				},
//				function(result) {
//					if(callback)
//						callback(result);
//				},
//				function(e) {//请求异常
//					
//				},
//				function() {//请求完成，一般不做什么事情
//					
//				});
//			}
			
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("T_f_password", factory);
});